package com.ehotting.mqbd.api.bean.solver;

import com.ehotting.mqbd.api.enums.ProtocolTypeEnum;
import com.ehotting.mqbd.api.enums.SolveStepEnum;

import java.util.List;


public class ModuleInfoBean implements java.io.Serializable {

    private String name;
    private String module;
    private ProtocolTypeEnum protocol;
    private String caller;
    private String activeUrl;
    private List<String> blockUrl;
    private List<String> cancelUrl;
    private Integer solveTotal = 1;
    private SolveStepEnum solveStep = SolveStepEnum.ONE;
    /**
     * 间隔时间
     */
    private Long intervalTime;

    /***
     * 最大的错误次数，超过该次数，求解器的状态切换为停止
     */
    private Integer errorTimes;

    public String getModule() {
        return module;
    }

    public void setModule(String module) {
        this.module = module;
    }

    public ProtocolTypeEnum getProtocol() {
        return protocol;
    }

    public void setProtocol(ProtocolTypeEnum protocol) {
        this.protocol = protocol;
    }


    public String getCaller() {
        return caller;
    }

    public void setCaller(String caller) {
        this.caller = caller;
    }

    public void setActiveUrl(String activeUrl) {
        this.activeUrl = activeUrl;
    }

    public String getActiveUrl() {
        return activeUrl;
    }

    public List<String> getBlockUrl() {
        return blockUrl;
    }

    public void setBlockUrl(List<String> blockUrl) {
        this.blockUrl = blockUrl;
    }

    public Integer getSolveTotal() {
        return solveTotal;
    }

    public void setSolveTotal(Integer solveTotal) {
        this.solveTotal = solveTotal;
    }

    public List<String> getCancelUrl() {
        return cancelUrl;
    }

    public void setCancelUrl(List<String> cancelUrl) {
        this.cancelUrl = cancelUrl;
    }

    public SolveStepEnum getSolveStep() {
        return solveStep;
    }

    public void setSolveStep(SolveStepEnum solveStep) {
        this.solveStep = solveStep;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Long getIntervalTime() {
        return intervalTime;
    }

    public void setIntervalTime(Long intervalTime) {
        this.intervalTime = intervalTime;
    }

    public Integer getErrorTimes() {
        return errorTimes;
    }

    public void setErrorTimes(Integer errorTimes) {
        this.errorTimes = errorTimes;
    }
}
